package com.vhly.apb.yahootask;

import android.os.AsyncTask;

/**
 * Created by IntelliJ IDEA.
 * User: vhly[FR]
 * Date: 11-1-7
 * Email: vhly@163.com
 */
public class YahooClientTask extends AsyncTask<ClientRequest, Integer, ClientResponse> {

    public ClientTaskProgressSupport progressSupport;

    @Override
    protected void onPreExecute() {
        progressSupport.startProgress();
        super.onPreExecute();
    }

    @Override
    protected ClientResponse doInBackground(ClientRequest... clientRequests) {
        return null;
    }

    @Override
    protected void onCancelled() {
        super.onCancelled();
    }

    @Override
    protected void onPostExecute(ClientResponse clientResponse) {
        progressSupport.finished();
        super.onPostExecute(clientResponse);
    }

    @Override
    protected void onProgressUpdate(Integer... values) {
        progressSupport.updateProgress(values[0]);
    }
}
